package felix.things.router.mqtt;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Felix
 * @date 2019/7/27
 */
@Data
@Component
@ConfigurationProperties(prefix = "mqttrouter.config", ignoreInvalidFields = true)
public class MqttBrokerConfiguration {
    private String host;
    private int port;
    private boolean ssl;
    private String clientId;
    private String truststore;
    private String truststorePassword;
    private int maxInflight;
    private long retryInterval;
    private long connectionTimeout;
    private long rateLimiting;
}
